<h1>Listing dishes</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Descr</th>
    <th>Cost</th>
    <th>Menu</th>
    <th>Status</th>
    <th>Restaurant</th>
    <th>Rate</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @dishes.each do |dish| %>
  <tr>
    <td><%= dish.name %></td>
    <td><%= dish.descr %></td>
    <td><%= dish.cost %></td>
    <td><%= dish.menu_id %></td>
    <td><%= dish.status %></td>
    <td><%= dish.restaurant_id %></td>
    <td><%= dish.rate %></td>
    <td><%= link_to 'Show', dish %></td>
    <td><%= link_to 'Edit', edit_dish_path(dish) %></td>
    <td><%= link_to 'Destroy', dish, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Dish', new_dish_path %>
